package com.acs.code1.utils;

import com.acs.code1.common.exception.ServiceException;
import com.acs.code1.common.exception.UserInputException;

public class Errors {
    public static UserInputException badRequest(String msg){
        return new UserInputException(msg);
    }
    public static ServiceException internal(Throwable e){
        return new ServiceException(e);
    }
    public static ServiceException db(){
        return new ServiceException("数据库操作异常");
    }
}
